package com.jadcon.harveycedars.model.dormitory;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("personService")
public class PersonServiceImpl implements PersonService {

	@Autowired
	private PersonRepository personRepository;


	public List<Person> getPersonList() {
		return personRepository.getPersonList();
	}
	
	
	public void save(Person person) {
		personRepository.save(person);
		
	}


	public Person findPersonByFullName(String fullname) {
		return personRepository.findPersonByFullName(fullname);
	}


	
	
	

	
	
}

